/*
 * @Autor: 黄旗
 * @Date: 2020-06-12 08:32:30
 */
import request from '@/plugins/request';

// 个人标签列表
export function basetagsselflist(data) {
    return request({
        url: '/v1/base/tags/self-list',
        method: 'get',
        params: data,
    });
}

// 新增个人标签
export function basetagsselfcreate(data) {
    return request({
        url: '/v1/base/tags/self-create',
        method: 'post',
        data,
    });
}

// 编辑个人标签
export function basetagsselfupdate(data) {
    return request({
        url: '/v1/base/tags/self-update',
        method: 'post',
        data,
    });
}

// 删除个人标签
export function basetagsselfdelete(data) {
    return request({
        url: '/v1/base/tags/self-delete',
        method: 'post',
        data,
    });
}

// 部门标签列表
export function basetagsprojectlist(data) {
    return request({
        url: '/v1/base/tags/project-list',
        method: 'get',
        params: data,
    });
}

// 新增部门标签
export function basetagsprojectcreate(data) {
    return request({
        url: '/v1/base/tags/project-create',
        method: 'post',
        data,
    });
}

// 编辑部门标签
export function basetagsprojectupdate(data) {
    return request({
        url: '/v1/base/tags/project-update',
        method: 'post',
        data,
    });
}

// 删除部门标签
export function basetagsprojectdelete(data) {
    return request({
        url: '/v1/base/tags/project-delete',
        method: 'post',
        data,
    });
}

// 根据标签名查找个人标签用户列表
export function basetagsfindtagsmember(data) {
    return request({
        url: '/v1/base/tags/find-tags-member',
        method: 'get',
        params: data,
    });
}

// 患者标签筛选条件列表
export function patientindextagsconditionlist(data) {
    return request({
        url: '/v1/patient/index/tags-condition-list',
        method: 'get',
        params: data,
    });
}
// 列表筛选标签条件列表
export function patientindextagsconditionlistv2(data) {
    return request({
        url: '/v1/patient/index/tags-condition-list-v2',
        method: 'get',
        params: data,
    });
}
// 编辑患者标签新
export function patientindexedittagsv2 (data) {
    return request({
        url: '/v1/patient/index/edit-tags-v2',
        method: 'post',
        data,
    });
}
// 个人标签排序
export function selftagsSort (data) {
    return request({
        url: '/v1/base/tags/self-tags-sort',
        method: 'post',
        data,
    });
}
// 部门标签排序
export function projecttagsSort (data) {
    return request({
        url: '/v1/base/tags/project-tags-sort',
        method: 'post',
        data,
    });
}